﻿using SD.Infrastructure.DomainServiceBase;
using SlamDunk.MES.Domain.Entities.DefinitionContext;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IDomainServices
{
    /// <summary>
    /// 物料清单领域服务接口
    /// </summary>
    public interface IBomService : IDomainService<Bom>
    {
        #region # 计算物料需求 —— IDictionary<Guid, decimal> CalculateMaterialAsks(Bom bom...
        /// <summary>
        /// 计算物料需求
        /// </summary>
        /// <param name="bom">物料清单</param>
        /// <param name="runSize">运行规模</param>
        /// <returns>物料需求列表</returns>
        IDictionary<Guid, decimal> CalculateMaterialAsks(Bom bom, decimal runSize);
        #endregion
    }
}
